package com.atguigu.daijia.customer.service;

import com.atguigu.daijia.model.entity.customer.CustomerInfo;
import com.atguigu.daijia.model.form.customer.UpdateWxPhoneForm;
import com.atguigu.daijia.model.vo.customer.CustomerLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;

public interface CustomerInfoService extends IService<CustomerInfo> {


    /**
     *微信小程序登录接口
     * @param code 小程序临时票据
     * @return 用户的openid
     */
    Long login(String code);


    /**
     *
     * @param customerId 数据库存储的客户id
     * @return
     * @description 根据id查询客户信息
     */
    CustomerLoginVo getCustomerInfo(Long customerId);

    //更新客户微信手机号码
    Boolean updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm);

    //获取客户的微信openid用于注册和登录
    String getCustomerOpenId(Long customerId);
}
